package com.pig4cloud.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.mall.product.entity.CategoryBrandRelation;
import com.pig4cloud.pig.common.core.util.R;

import java.util.List;

/**
 * 品牌分类关联
 *
 * @author fangyu
 * @date 2020-11-25 14:58:43
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelation> {

	/**
	 * 新增品牌分类关联
	 * @param categoryBrandRelation 品牌分类关联
	 */
    R saveDetail(CategoryBrandRelation categoryBrandRelation);

	/**
	 * 通过品牌id查询品牌分类关联列表
	 * @param brandId 品牌id
	 * @return List
	 */
	List<CategoryBrandRelation> getByBrandId(Long brandId);
}
